<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Article;
use App\Http\Resources\ArticleResource;

class ArticleController extends Controller
{
    public function show($sign, Article $article)
    {
        $row = $article->where('sign', $sign)->firstOrFail();
        return $this->resource(new ArticleResource($row));
    }
}
